3d surface area hackerrank solution